#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <QTimer>

#include "netserver_udp.h"
#include "error.h"
#include "chat_book_Macrodefine.h"
#include "register.h"

namespace Ui {
    class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = 0);
    ~Login();
    Netserver_udp *m_StartNetServer;

private:
    Ui::Login *ui;
    Error m_Error;
    QTimer *m_Timer;
    Register *m_Register;
    int i;

private slots:
    void m_LoginProcess();
    void m_TimeroutProcess();
    void m_WaitServerProcess();
    void m_RegisterProcess();
};

#endif // LOGIN_H
